/*
 * @Author: zxc
 * @Date: 2020-08-24 09:07:26
 * @LastEditTime: 2020-09-16 20:30:07
 * @LastEditors: zxc
 * @Description:
 */
const path = require('path')
const resolve = dir => path.join(__dirname, dir)

const BASE_URL = process.env.NODE_ENV === 'production' ? '/' : '/'

module.exports = {
  lintOnSave: false,
  publicPath: BASE_URL,
  // 打包时不生成 .map文件
  productionSourceMap: false,
  chainWebpack: config => {
    config.resolve.alias
      .set('@', resolve('src')) // alias @指向src目录
      .set('_c', resolve('src/components')) // alias _c指向components文件夹
  },
  devServer: {
    // proxy: 'http://localhost:3000'
  }
}
